﻿<UserControl x:Class="KinectControl.CameraDraw"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:WPFMedia="clr-namespace:WPFMediaKit.DirectShow.Controls;assembly=WPFMediaKit"
             xmlns:my="clr-namespace:Microsoft.Samples.Kinect.WpfViewers;assembly=Microsoft.Samples.Kinect.WpfViewers"
             
             Height="499" Width="657" Loaded="Window_Loaded" 
             mc:Ignorable="d">
    <UserControl.Resources>
        <Storyboard x:Key="sbBlurEllipses">
            <DoubleAnimation Storyboard.TargetName="ShadowLeftEllipse" Storyboard.TargetProperty="BlurRadius" From="15" To="0" Duration="00:00:01" RepeatBehavior="Forever"/>
            <DoubleAnimation Storyboard.TargetName="ShadowRightEllipse" Storyboard.TargetProperty="BlurRadius" From="15" To="0" Duration="00:00:01" RepeatBehavior="Forever"/>
            <ColorAnimation Storyboard.TargetName="leftEllipse" Storyboard.TargetProperty="Stroke.Color" From="#87A3B5" To="YellowGreen" Duration="00:00:01" RepeatBehavior="Forever"/>
            <ColorAnimation Storyboard.TargetName="rightEllipse" Storyboard.TargetProperty="Stroke.Color" From="#87A3B5" To="YellowGreen" Duration="00:00:01" RepeatBehavior="Forever"/>
        </Storyboard>
    </UserControl.Resources>
    
    
    <Canvas Name="MainCanvas" Height="486" Width="646">
        <my:KinectColorViewer Canvas.Left="0" Canvas.Top="0" Width="640" Height="480" Name="kinectColorViewer1" 
                              Kinect="{Binding ElementName=kinectSensorChooser1, Path=Kinect}" />


        <Ellipse Canvas.Left="0" Canvas.Top="0" Height="80" Name="leftEllipse"  Width="80" Opacity="1" Fill="Transparent" Stroke="#87A3B5" StrokeThickness="4">            
            <Ellipse.Effect>
                <DropShadowEffect x:Name="ShadowLeftEllipse" Color="GreenYellow" Opacity="1" BlurRadius="15" ShadowDepth="0"/>
            </Ellipse.Effect>
        </Ellipse>
        <!--<WPFMedia:MediaUriElement LoadedBehavior="Play" Canvas.Left="0" Canvas.Top="0" Height="50" Name="leftEllipse"  Width="50" Opacity="1"/>-->

        <Ellipse Canvas.Left="100" Canvas.Top="0" Height="80" Name="rightEllipse" Width="80" Opacity="1" Fill="Transparent" Stroke="#87A3B5" Stretch="Fill" StrokeLineJoin="Miter" StrokeMiterLimit="10" StrokeThickness="4">
            <Ellipse.Effect>
                <DropShadowEffect x:Name="ShadowRightEllipse" Color="GreenYellow" Opacity="1" BlurRadius="15" ShadowDepth="0"/>
            </Ellipse.Effect>
        </Ellipse>
        <!--<WPFMedia:MediaUriElement LoadedBehavior="Play" Canvas.Left="100" Canvas.Top="0" Height="50" Name="rightEllipse" Width="50" Opacity="1"/>-->
        
        <my:KinectSensorChooser Canvas.Left="176" Canvas.Top="195" Name="kinectSensorChooser1" Width="328" />
        
        <!--<Image Canvas.Left="66" Canvas.Top="90" Height="87" Name="headImage" Stretch="Fill" Width="84" Source="/VitrineInterativa;component/c4f-color.png" />-->
    </Canvas>
</UserControl>
